package com.atguigu.mybatisplusdemo.mapper;

import com.atguigu.mybatisplusdemo.beans.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
BaseMapper：帮我们提供了大量的增删改查
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    //MybatisPlus帮你实现不了的操作，例如：join , group by ,union等
    List<Employee> joinOp();

    /*
    模拟动态拼接sql
     */
    List<Employee> queryByCondition(@Param("name") String name,@Param("id") Integer id,@Param("gender") String gender);
}



























